
function pz(text,point,data)
    local info = {
        string = text,
        font_size = 16,
        target = point,
        angle = 90,
        speed = 120,
        color = 0xffff6800,
        life = 1,
        fade = 0.5,
    }
    for k,v in pairs(data or {}) do
        info[k] = v
    end
    ac.ui_tag(info)
end


ac.game:event '单位-物品进入冷却'(function(_,hero,item)
    local point = hero:get_point() - {0,150}
    if item.tzjb then
        return
    end
    pz(item:get_title(),point)
end)